
public class ForEachLoopStudentNamesArrayDemo {

	public static void main(String[] args) {
		//Create an array called names and assign the values to the array.
		
		String[] names = new String[10];
				
		names[0] = "Satya";	
		names[1] = "Raji";
		names[2] = "Meera";
		names[3] = "Henry";
		names[4] = "Naveen";
		names[5] = "Ravi";
		
		
		// for each loop to read values--
				
		for (String name:names)
		{
			
			System.out.println("The name in Index "+ name);
		}
		
		
	}

}
